package com.erp.erp_entitys.Email;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class email_message implements Serializable {
    //共有属性
    private int email_id;//邮件id，仅草稿箱有
    private String sendDate;//发送时间
    private int stmpId;    //发送服务器id
    private String charset;//字符集
    private String contenct;//正文
    private Map<String,String> pictures; //正文附图  map中，前为图片名,在正文中写法应为src=”cid:“，后为图片地址
    private HashMap<String,String> aduncts; //附件 key是附件名，value是地址
    private int ismore;//控制单发还是群发单显  1是单发，2是群发
    //单发属性
    private String subject;//主题
    private Map<String,String> sendAddres;//发送地址
    private List<String> copyAddress; //抄送地址
    private List<String> darkAddress; //密送（暗送）地址
    //群发属性
    private List<String> subjects;
    private Map<String,String> sendAddress; //发送地址  key=用户名 value=地址
    private int momStart;//发送间隔起点 秒
    private int momEnd;//发送间隔终点 秒


    public email_message(int email_id,String sendDate, int stmpId, String charset, String contenct, Map<String, String> pictures, HashMap<String, String> aduncts, int ismore, String subject, Map<String, String> sendAddres, List<String> copyAddress, List<String> darkAddress) {
        this.email_id=email_id;
        this.sendDate = sendDate;
        this.stmpId = stmpId;
        this.charset = charset;
        this.contenct = contenct;
        this.pictures = pictures;
        this.aduncts = aduncts;
        this.ismore = ismore;
        this.subject = subject;
        this.sendAddres = sendAddres;
        this.copyAddress = copyAddress;
        this.darkAddress = darkAddress;
    }

    public email_message(int email_id,String sendDate, int stmpId, String charset, String contenct, Map<String, String> pictures, HashMap<String, String> aduncts, int ismore, List<String> subjects, Map<String, String> sendAddress, int momStart,int momEnd) {
        this.email_id=email_id;
        this.sendDate = sendDate;
        this.stmpId = stmpId;
        this.charset = charset;
        this.contenct = contenct;
        this.pictures = pictures;
        this.aduncts = aduncts;
        this.ismore = ismore;
        this.subjects = subjects;
        this.sendAddress = sendAddress;
        this.momStart = momStart;
        this.momEnd = momEnd;
    }

    public int getEmail_id() {
        return email_id;
    }

    public void setEmail_id(int email_id) {
        this.email_id = email_id;
    }

    public int getMomStart() {
        return momStart;
    }

    public void setMomStart(int momStart) {
        this.momStart = momStart;
    }

    public int getMomEnd() {
        return momEnd;
    }

    public void setMomEnd(int momEnd) {
        this.momEnd = momEnd;
    }

    public email_message() {
    }

    public String getSendDate() {
        return sendDate;
    }

    public void setSendDate(String sendDate) {
        this.sendDate = sendDate;
    }

    public int getStmpId() {
        return stmpId;
    }

    public void setStmpId(int stmpId) {
        this.stmpId = stmpId;
    }

    public String getCharset() {
        return charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    public String getContenct() {
        return contenct;
    }

    public void setContenct(String contenct) {
        this.contenct = contenct;
    }

    public Map<String, String> getPictures() {
        return pictures;
    }

    public void setPictures(Map<String, String> pictures) {
        this.pictures = pictures;
    }

    public HashMap<String, String> getAduncts() {
        return aduncts;
    }

    public void setAduncts(HashMap<String, String> aduncts) {
        this.aduncts = aduncts;
    }

    public int getIsmore() {
        return ismore;
    }

    public void setIsmore(int ismore) {
        this.ismore = ismore;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public Map<String, String> getSendAddres() {
        return sendAddres;
    }

    public void setSendAddres(Map<String, String> sendAddres) {
        this.sendAddres = sendAddres;
    }

    public List<String> getCopyAddress() {
        return copyAddress;
    }

    public void setCopyAddress(List<String> copyAddress) {
        this.copyAddress = copyAddress;
    }

    public List<String> getDarkAddress() {
        return darkAddress;
    }

    public void setDarkAddress(List<String> darkAddress) {
        this.darkAddress = darkAddress;
    }

    public List<String> getSubjects() {
        return subjects;
    }

    public void setSubjects(List<String> subjects) {
        this.subjects = subjects;
    }

    public Map<String, String> getSendAddress() {
        return sendAddress;
    }

    public void setSendAddress(Map<String, String> sendAddress) {
        this.sendAddress = sendAddress;
    }

}
